var fs = require("fs");

var globalConfig = {};

var conf = fs.readFileSync("./server.conf");

var configArr = conf.toString().split("\n");

console.log(configArr)

for (var i = 0 ; i < configArr.length ; i ++) {
    if(configArr[i]) {
        globalConfig[configArr[i].split("=")[0].trim()] = configArr[i].split("=")[1].trim();
    }
}

console.log(globalConfig)

module.exports = globalConfig;